﻿using System.Collections.Generic;

namespace DomainModel
{
    public class Group : BaseEntity
    {
        private readonly List<User> _students;

        protected Group()
        {
            _students = new List<User>();
        }

        public Group(string name)
            : this()
        {
            Name = name;
        }

        public virtual string Name { get; set; }
        public virtual User Curator { get; set; }
        public virtual User Praepostor { get; set; }
        public virtual IEnumerable<User> Students
        {
            get { return _students; }
        }
    }
}
